<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> 群发邮件  <{$smarty.const.WEB_NAME}></title>
	<link rel="stylesheet" type="text/css" href="./skin/<{$smarty.const.TPL_NAME}>/style.css" />
	<script type="text/javascript" src="./skin/<{$smarty.const.TPL_NAME}>/comm.js"></script> 
 </head>
 <body>
     
	<table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" class="tableList tip_bug">
	  <tr> 
		<th class="h3">发送邮件</th>
		<th width="200"><a href="?q=sendHistoryList">返回发送历史</a></th>
	  </tr>
	</table>
<form method="post" id="from_1" action="index.php?q=sendMailAction">	
	   <table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" id="tableList">              
		 <tr>
		    <th width="60">主题</th>
            <td><input type="text" class="titInput" name="title" /><a href="#" onclick="showWindow()" class="userListICO">员工列表</a>&nbsp;&nbsp;&nbsp;&nbsp;(默认全部)</td>			
		 </tr>
		 <tr>
		   <td>内容</td>
		   <td  style="padding:10px 0 5px 1em; text-indent:0; ">
		       <textarea name="content" style="display:none"></textarea>
  <iframe ID="Editor" name="Editor" src="./view/<{$smarty.const.TPL_NAME}>/HtmlEditor/index.html?Id=content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:180px;width:96%"></iframe>
		   
		   </td>
		 </tr>
          
         <tr>
		   <td colspan="2" align="center">
		      <input type="hidden" id="allqq" name="qq" />
		     <input type="submit" class="submit" value="确定发送" />
			 <input type="button" class="submit" value="重置" onclick="formReset('from_1')"/>
		   </td>
		 </tr>
       </table>
</form>

</table>
<script type="text/javascript">
<!--
function showWindow(){
var obj = $('allqq');
var str= showModalDialog('index.php?q=departmentTree','widnow','dialogHeight: 250px; dialogWidth:240px');
if(str != undefined && str != ""){
   obj.value =str;
 }else{
  obj.value = '';
  alert("你没有选择，将发送到所有员工的邮箱");
 }
}
//-->
</script>
 </body>
</html>
